a7f878f4cbff28b5d63ff57dd6e0084ffcce1e77,tooling/archetype-commands/src/main/java/io/fabric8/tooling/archetype/commands/ArchetypeGenerateAction.java,ArchetypeGenerateAction,doExecute,#,61

Before Change


            }

            // if we have fabric.profile as property, then use artifactId as its default suggested value
            String profile = properties.get("fabric8.profile");
            if (isNullOrBlank(profile)) {
                properties.put("fabric8.profile", artifactId);
                mustChoose = true;
            }

After Change


        String profile = null;
        if (properties.containsKey("fabric8.profile")) {
            profile = properties.remove("fabric8.profile");
            String defaultProfile = isNullOrBlank(profile) ? artifactId : profile;
            String p = ShellUtils.readLine(session, String.format("Define value for property 'fabric8.profile' (%s): ", defaultProfile), false);
            profile = isNullOrBlank(p) ? defaultProfile : p;
        }